package com.icinfo.cloud.provider.punish.ucase.investigateevidence.controller;

import com.icinfo.cloud.provider.punish.ucase.investigateevidence.dto.CaseLegalReviewSaveDto;
import com.icinfo.cloud.provider.punish.ucase.investigateevidence.service.ICaseLegalReviewService;
import com.icinfo.cloud.provider.punish.ucase.investigateevidence.vo.CaseLegalReviewInfoVo;
import com.icinfo.framework.common.web.Result;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 生态环境调查取证阶段接口
 * @Author mahan
 * @Date 2022/11/24
 */
@RestController
@RequestMapping("/punish/ucase/case/investigate/legal")
public class CaseLegalReviewController {

	@Resource
	private ICaseLegalReviewService caseLegalReviewService;


	/**
	 * 保存行政处罚法制审核表基本信息（生态环境）(不再使用)
	 * @param dto
	 * @return
	 */
	@PostMapping("/saveCaseLegalReviewBaseInfo")
	public Result saveCaseLegalReviewBaseInfo(@RequestBody CaseLegalReviewSaveDto dto) {
		caseLegalReviewService.saveCaseLegalReviewBaseInfo(dto);
		return Result.success("保存成功");
	}


	/**
	 * 获取行政处罚法制审核表基本信息（生态环境）
	 * @param caseId
	 * @return
	 */
	@GetMapping("/getCaseLegalReviewBaseInfo")
	public Result<CaseLegalReviewInfoVo> getCaseLegalReviewBaseInfo(@RequestParam String caseId) {
		return Result.success(caseLegalReviewService.getCaseLegalReviewBaseInfo(caseId));
	}
}
